<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>工具功能演示</title>

  <link rel="stylesheet" href="./lib/bootstrap.min.css">
</head>

<body>

  <!-- 手机验证码部分 -->
  <div class="d-flex justify-content-center m-5">

    <div class="card">
      <div class="card-body">

        <div class="mb-3">
          <input type="text" id="txt_imageCode" class="form-control" placeholder="图片验证码">
        </div>

        <div class="mb-3 d-flex">
          <img id="img_code" src="" alt="">
          <div>
            <span id="spImg" class="btn btn-link">换一张</span>
          </div>
        </div>

        <div class="mb-3 d-flex">
          <div>
            <input type="text" id="txt_phone" class="form-control" placeholder="手机号">
          </div>

          <div>
            <span id="spPhone" class="btn btn-link">发送手机验证码</span>
          </div>

        </div>


      </div>
    </div>

  </div>

  <!-- 加密和解密 -->
  <div class="d-flex justify-content-center m-5">
    <div class="card">
      <div class="card-body">

        <div class="mb-3">
          <textarea id="txt_info" cols="80" rows="6"
            class="form-control" placeholder="信息"></textarea>
        </div>

        <div class="mb-3 text-center">
          <span id="spEn" class="btn btn-primary me-2 btn-sm">加密</span>
          <span id="spDe" class="btn btn-success btn-sm">解密</span>
        </div>

        <div class="mb-3">
          <textarea id="txt_result" cols="80" rows="6"
            readonly class="form-control" placeholder="结果"></textarea>
        </div>

      </div>
    </div>

  </div>


  <!-- 信息弹出层 -->
  <div class="toast-container position-fixed bottom-0 end-0 p-3">

    <div id="divToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">

      <div class="toast-header">
        <strong class="me-auto">服务器消息</strong>
        <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
      </div>

      <div class="toast-body">
        Hello, world! This is a toast message.
      </div>

    </div>

  </div>

  <script src="./lib/bootstrap.bundle.min.js"></script>
  <script type="module" src="./js/tools.js"></script>

</body>

</html>